﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AccountDetail.aspx.cs" Inherits="SAD_Assignment1.Admin.AccountDetail" MasterPageFile="~/Shared/Site1.Master"%>

<asp:Content runat="server" ContentPlaceHolderID="head">
    <title>Account Detail</title>
</asp:Content>
<asp:Content runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <div class="container-title">Thông tin tài khoản</div>
    <asp:Label Text="Tài khoản đã tồn tại" runat="server" ID="txtError" Visible="false" ForeColor="Red" />
    <table class="table-hover register-table">
        <tr>
            <td>ID:</td>
            <td><asp:Label runat="server" ID="txtID" /></td>
        </tr>
        <tr>
            <td>Email:</td>
            <td><asp:TextBox runat="server" ID="txtEmail" placeholder="example@email.com" required="true"
                CssClass="form-control" TextMode="Email"/></td>
        </tr>
        <tr>
            <td>Tên hiển thị:</td>
            <td><asp:TextBox runat="server" ID="txtName"  placeholder="Nguyen Van A" required="true"
                CssClass="form-control"/></td>
        </tr>
        <tr>
            <td>Mật khẩu:</td>
            <td><asp:TextBox runat="server" ID="txtPass" required="true" TextMode="Password"
                CssClass="form-control"/>
                <asp:CompareValidator ID="comparePasswords" runat="server" ControlToCompare="txtPass"
                    ControlToValidate="txtConfirm" ErrorMessage="Mật khẩu không chính xác" Font-Size="Small"
                    Display="Dynamic" ForeColor="Red"/>
            </td>
        </tr>
        <tr>
            <td>Xác nhận mật khẩu:</td>
            <td><asp:TextBox runat="server" ID="txtConfirm" required="true" TextMode="Password"
                CssClass="form-control"/></td>
        </tr>
        <tr>
            <td>Chức vụ:</td>
            <td><asp:DropDownList runat="server" CssClass="form-control" ID="ddlRoles">
                <asp:ListItem Value="admin">Admin</asp:ListItem>
                <asp:ListItem Value="staff">Nhân viên</asp:ListItem>
                <asp:ListItem Value="member">Thành viên</asp:ListItem>
                <asp:ListItem Value="deactive">Chưa kích hoạt</asp:ListItem>
                <asp:ListItem Value="block">Khóa</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td></td>
            <td><asp:Button runat="server" Text="Tạo tài khoản mới" ID="SubmitBtn" CssClass="btn btn-success" 
                OnCommand="SubmitBtn_Command" CommandName="Create"/></td>
        </tr>
    </table>
</asp:Content>